package com.decent.ejfadmin.common.util;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @author zhangchao
 * @date 2018/7/26 15:52
 */
public class Constants {

    /**
     * 支付宝转账成功CODE
     */
    public static final String TRANSFER_SUCCESS = "10000";

    /**
     * 操作 0-修改，1-新增，2-上架，3-下架，4-删除
     */
    public static final int METHOD_UPDATE = 0;
    public static final int METHOD_ADD = 1;
    public static final int METHOD_UP = 2;
    public static final int METHOD_DOWN = 3;
    public static final int METHOD_DELETE = 4;

    /**
     * 状态 1-开启，0-关闭 2-维护
     */
    public static final Integer STATE_OPEN = 1;
    public static final Integer STATE_CLOSE = 0;
    public static final Integer STATE_MAINTENANCE = 2;


    /**
     * 状态 1-已联系，0-未联系
     */
    public static final Integer CONNECTED = 1;
    public static final Integer NO_CONNECT = 0;

    /**
     * 提现状态 0-待获取，1-处理中，2-成功，3-失败，4-异常，5-返销
     */
    public static final Integer WAITING_STATE = 0;
    public static final Integer DEALING_STATE = 1;
    public static final Integer SUCCESS_STATE = 2;
    public static final Integer FAIL_STATE = 3;
    public static final Integer EXCEPTION_STATE = 4;
    public static final Integer BACK_STATE = 5;
    /**
     * 标准日期时间格式
     */
    public static final String STANDARD_DATE_TIME = "yyyy-MM-dd HH:mm:ss";
    /**
     * 状态 1-审核成功，2-审核失败
     */
    public static final Integer CHECK_SUCCESS = 1;
    public static final Integer CHECK_FAIL = 2;

    /**
     * 易服务商户
     */
    public static final List<Integer> ESERVER = Arrays.asList(13630, 14350, 18370);
    /**
     * 易缴费商户
     */
    public static final List<Integer> EPAY = Arrays.asList(13950, 14165);

    /**
     *订单分类：Alipay闲鱼小程序 null或idle闲鱼APP
     */
    public static final String ORDER_CATEGORY_ALIPAY = "Alipay";

    /**
     *订单分类：Alipay闲鱼小程序 null或idle闲鱼APP
     */
    public static final String ORDER_CATEGORY_IDLE = "idle";
    /**
     * 不记录请求/响应日志的接口
     */
    public static final List<String> NO_LOG_URIS = new ArrayList<String>(2) {
        private static final long serialVersionUID = -3144637837941161254L;

        {
            add("/shiro/login");
        }
    };
}
